<%@ page language="java" pageEncoding="ISO-8859-1"%>
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>

<logic:present name="booksections">
<logic:notEmpty name="booksections">
<logic:iterate name="booksections" id="record">
<bean:write name="record" property="courseId" />
<bean:write name="record" property="professor" />
</logic:iterate>
</logic:notEmpty>
</logic:present>
<logic:notPresent name="booksections">
This book is not used in any section
</logic:notPresent>

<logic:notPresent name="test">
This book is not used in any section
</logic:notPresent>

</body>
</html>